// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        // bg: {
        //     type: cc.Prefab, //预制体类型
        //     default: [], //默认值
        // },
        // decorate: {
        //     type: cc.Prefab, //预制体类型
        //     default: [], //默认值
        // },
    },

    // LIFE-CYCLE CALLBACKS:
    onClick(e,custom) {//e为事件对象，custom为自定义参数
        window.g_Mapid = custom;
        cc.director.loadScene('game');
    },
    // onLoad () {},

    start() {
        
    },

    // update (dt) {},
});
